﻿
namespace Inovout.Gis.Land
{
    public class LandLayerFactory : LayerFactory
    {
        public override ILayerInfo Create(ILayerInfo layerInfo)
        {
            switch (layerInfo.Name)
            {
                case "G31_H_PY":
                     return new TuBanPolygonLayer(layerInfo as IGeometryLayerInfo);
                case "G32_H_PL":
                   return new TuBanLineLayer(layerInfo as IGeometryLayerInfo);
                case "G33_H_PT":
                   return new TuBanPointLayer(layerInfo as IGeometryLayerInfo);
                default:
                    return null;

            }
        }
  
        //先构造出与行政区有相同树结构层关系
        //找到对应行政区分行的入口，如行政区为县或者父为空的行政区层。

        public override IGeometryLayerInfo Create(IGisTable gisTable)
        {
            return null;
        }
    }
}
